//
//  UIView+RCSToast.h
//  RCS
//
//  Created by apple on 14-10-11.
//  Copyright (c) 2014年 Chinasofti. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (RCSToast)

// each makeToast method creates a view and displays it as toast
- (void)rcsmakeToast:(NSString *)message;
- (void)rcsmakeToast:(NSString *)message duration:(CGFloat)interval position:(id)position;
- (void)rcsmakeToast:(NSString *)message duration:(CGFloat)interval position:(id)position title:(NSString *)title;
- (void)rcsmakeToast:(NSString *)message duration:(CGFloat)interval position:(id)position title:(NSString *)title image:(UIImage *)image;
- (void)rcsmakeToast:(NSString *)message duration:(CGFloat)interval position:(id)position image:(UIImage *)image;

// displays toast with an activity spinner
- (void)rcsmakeToastActivity:(id)position;
- (void)rcshideToastActivity;
- (void)rcsmakeToastActivityWithMessage:(NSString *)message;
- (void)rcsmakeToastResultWithMessage:(NSString *)message isSuccess:(BOOL)success;
// the showToast methods display any view as toast
- (void)rcsshowToast:(UIView *)toast;
- (void)rcsHidenToastView;
- (void)rcsshowToast:(UIView *)toast duration:(CGFloat)interval position:(id)point;

- (void)rcsshowToastForChat:(NSString *)message bShowKeyBoard:(BOOL)isShowKeyBoard;

@end
